[gd_scene load_steps=30 format=3 uid="uid://cxadeie12qyiv"]

[ext_resource type="PackedScene" uid="uid://dnfju4yhreprf" path="res://gameObjects/player.tscn" id="1_gsj4w"]
[ext_resource type="Texture2D" uid="uid://dvy20ehv7vwtx" path="res://textures/grass.png" id="1_nm27h"]
[ext_resource type="Script" path="res://scripts/game.gd" id="1_ob1dd"]
[ext_resource type="Script" path="res://scripts/Save Handler.gd" id="2_khrwp"]
[ext_resource type="PackedScene" uid="uid://cs8oadfpwgfm7" path="res://ui/inventory.tscn" id="2_m5l01"]
[ext_resource type="PackedScene" uid="uid://bra7fnd43ecfq" path="res://ui/pause_menu.tscn" id="3_8iv7v"]
[ext_resource type="Resource" uid="uid://cuy26rbc1wc85" path="res://items/corrupted_item.tres" id="3_cblie"]
[ext_resource type="Script" path="res://scenes/InventoryInterface.gd" id="3_s4lpt"]
[ext_resource type="Resource" uid="uid://dto51fwgl5v3o" path="res://items/consumables/carrot.tres" id="4_iuc5a"]
[ext_resource type="PackedScene" uid="uid://2k83wm6hatwy" path="res://ui/slot.tscn" id="5_s4jdl"]
[ext_resource type="PackedScene" uid="uid://cdncxtvwk1ncn" path="res://ui/hot_bar.tscn" id="6_866oe"]
[ext_resource type="PackedScene" uid="uid://b5h367fbx1qrr" path="res://gameObjects/interactables/box.tscn" id="9_ghh1s"]
[ext_resource type="Script" path="res://scripts/inventory/inventory_data.gd" id="10_6a8n0"]
[ext_resource type="Script" path="res://scripts/inventory/slot_data.gd" id="14_3rsru"]
[ext_resource type="Resource" uid="uid://bns1laborwjl6" path="res://items/consumables/potato.tres" id="15_qnxl8"]

[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_yb27i"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)

[sub_resource type="Sky" id="Sky_0fxqf"]
sky_material = SubResource("ProceduralSkyMaterial_yb27i")

[sub_resource type="Environment" id="Environment_75xyi"]
background_mode = 2
sky = SubResource("Sky_0fxqf")
tonemap_mode = 2
glow_enabled = true

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jdd33"]
albedo_texture = ExtResource("1_nm27h")

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tm33k"]
albedo_color = Color(0.290196, 1, 0.513726, 1)

[sub_resource type="PlaneMesh" id="PlaneMesh_75m0g"]
material = SubResource("StandardMaterial3D_tm33k")
size = Vector2(20, 20)

[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_a12vn"]
data = PackedVector3Array(10, 0, 10, -10, 0, 10, 10, 0, -10, -10, 0, 10, -10, 0, -10, 10, 0, -10)

[sub_resource type="Resource" id="Resource_lpjfv"]
script = ExtResource("10_6a8n0")
slot_datas = Array[ExtResource("14_3rsru")]([null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null])

[sub_resource type="Resource" id="Resource_6frif"]
script = ExtResource("14_3rsru")
item_data = ExtResource("3_cblie")
quantity = 99

[sub_resource type="Resource" id="Resource_yh1g6"]
script = ExtResource("14_3rsru")
item_data = ExtResource("4_iuc5a")
quantity = 99

[sub_resource type="Resource" id="Resource_khgr8"]
script = ExtResource("14_3rsru")
item_data = ExtResource("15_qnxl8")
quantity = 99

[sub_resource type="Resource" id="Resource_begvs"]
script = ExtResource("10_6a8n0")
slot_datas = Array[ExtResource("14_3rsru")]([SubResource("Resource_6frif"), SubResource("Resource_yh1g6"), SubResource("Resource_khgr8")])

[sub_resource type="Resource" id="Resource_ph85f"]
script = ExtResource("10_6a8n0")
slot_datas = Array[ExtResource("14_3rsru")]([null, null, null])

[sub_resource type="Resource" id="Resource_e1ody"]
script = ExtResource("10_6a8n0")
slot_datas = Array[ExtResource("14_3rsru")]([null, null, null])

[node name="game" type="Node3D"]
script = ExtResource("1_ob1dd")

[node name="SaveHandler" type="Node" parent="." node_paths=PackedStringArray("player")]
script = ExtResource("2_khrwp")
save_name = "save"
player = NodePath("../player")
items = Array[Resource("res://scripts/inventory/item_data.gd")]([ExtResource("3_cblie"), ExtResource("4_iuc5a")])

[node name="CanvasLayer" type="CanvasLayer" parent="."]

[node name="PauseMenu" parent="CanvasLayer" node_paths=PackedStringArray("saver") instance=ExtResource("3_8iv7v")]
saver = NodePath("../../SaveHandler")

[node name="InventoryInterface" type="Control" parent="CanvasLayer"]
visible = false
layout_mode = 3
anchors_preset = 0
offset_right = 1149.0
offset_bottom = 639.0
mouse_filter = 1
script = ExtResource("3_s4lpt")

[node name="PlayerInventory" parent="CanvasLayer/InventoryInterface" instance=ExtResource("2_m5l01")]
layout_mode = 0
offset_left = 10.0
offset_top = 10.0
offset_right = 50.0
offset_bottom = 50.0

[node name="ExternalInventory" parent="CanvasLayer/InventoryInterface" instance=ExtResource("2_m5l01")]
visible = false
layout_mode = 0
offset_left = 668.0
offset_top = 14.0
offset_right = 708.0
offset_bottom = 54.0

[node name="GrabbedSlot" parent="CanvasLayer/InventoryInterface" instance=ExtResource("5_s4jdl")]
visible = false
modulate = Color(1, 1, 1, 0.501961)
self_modulate = Color(1, 1, 1, 0)
layout_mode = 0
offset_right = 64.0
offset_bottom = 64.0

[node name="HotBar" parent="CanvasLayer" instance=ExtResource("6_866oe")]
offset_left = 10.0
offset_top = 10.0
offset_right = 430.0
offset_bottom = 90.0

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_75xyi")

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
shadow_enabled = true

[node name="temp ground" type="MeshInstance3D" parent="."]
material_override = SubResource("StandardMaterial3D_jdd33")
mesh = SubResource("PlaneMesh_75m0g")

[node name="StaticBody3D" type="StaticBody3D" parent="temp ground"]

[node name="CollisionShape3D" type="CollisionShape3D" parent="temp ground/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_a12vn")

[node name="player" parent="." instance=ExtResource("1_gsj4w")]
inventory = SubResource("Resource_lpjfv")

[node name="Boxes" type="Node" parent="."]

[node name="Box1" parent="Boxes" instance=ExtResource("9_ghh1s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0.5, -8)
inventory_data = SubResource("Resource_begvs")
inventory_id = "box1"

[node name="Box2" parent="Boxes" instance=ExtResource("9_ghh1s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0.5, -5)
inventory_data = SubResource("Resource_ph85f")
inventory_id = "box2"

[node name="Box3" parent="Boxes" instance=ExtResource("9_ghh1s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0.5, -6.5)
inventory_data = SubResource("Resource_e1ody")
inventory_id = "box3"

[connection signal="drop_slot_data" from="CanvasLayer/InventoryInterface" to="." method="_on_inventory_interface_drop_slot_data"]
[connection signal="gui_input" from="CanvasLayer/InventoryInterface" to="CanvasLayer/InventoryInterface" method="_on_gui_input"]
